<style>
    .eReplacement-confirmation-page{}
    .eReplacement-confirmation-page .el-dialog__body#noValidQuotation{padding:10px 20px!important;}
    
    .el-form-item.text-area{width:100%;}
    .el-form-item.text-area-64 .el-form-item__content{-moz-width: calc(100% - 64px);-webkit-width: calc(100% - 64px);width: calc(100% - 64px);}
    .el-form-item.text-area-66 .el-form-item__content{-moz-width: calc(100% - 66px);-webkit-width: calc(100% - 66px);width: calc(100% - 66px);}
    .el-form-item.text-area-138 .el-form-item__content{-moz-width: calc(100% - 138px);-webkit-width: calc(100% - 138px);width: calc(100% - 138px);}
</style>
<template>
    <div class="eReplacement-confirmation-page" v-loading.fullscreen.lock="fullscreenLoading" :element-loading-text="nowLangue.isLoading">
        <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
            <!-- 普通替换 -->
            <el-tab-pane :label="nowLangue.generalReplace" name="1">
                <el-form :inline="true" :model="formInline" class="demo-form-inline" style="border-bottom:1px solid #ccc;">
                    <!--法人信息-->
                    <el-form-item :label="nowLangue.legalPersonMes" class="selectMB10">
                        <el-input size="mini" v-if="legalPersonDropDown.length==1" disabled v-model="formInline.legalPersonName" placeholder=""></el-input>
                        <el-select size="mini" v-else clearable v-model="formInline.legalPersonId" :placeholder="nowLangue.pleaseSelect">
                            <el-option v-for="(legalPerson,index) in legalPersonDropDown" :key="index" :label="legalPerson.legalPersonName":value="legalPerson.id">
                                <span>{{ legalPerson.legalPersonName }}</span>
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <!--产品线-->
                    <el-form-item :label="nowLangue.productLine" class="selectMB10">
                        <el-select size="mini" clearable v-model="formInline.productLineId" :placeholder="nowLangue.pleaseSelect">
                            <el-option v-for="(product,index) in productLineList" :key="index" :label="product.label" :value="product.value"></el-option>
                        </el-select>
                    </el-form-item>
                    <!--提交人-->
                    <el-form-item :label="nowLangue.submitter" class="selectMB10">
                        <el-input size="mini" v-model="formInline.creatorName" :placeholder="nowLangue.pleaseImport+' '+nowLangue.submitter"></el-input>
                    </el-form-item>
                    <!--提交时间-->
                    <el-form-item :label="nowLangue.submissionTime" class="selectMB10">
                        <el-date-picker size="mini" v-model="formInline.startCreateTime" :editable="false" type="date" placeholder="选择起始日期" @change="selectedCreateTimeBegin"></el-date-picker>
                        &nbsp;至&nbsp;
                        <el-date-picker size="mini" v-model="formInline.endCreateTime" :editable="false" type="date" placeholder="选择结束日期" @change="selectedCreateTimeEnd"></el-date-picker>
                    </el-form-item>
                    <!--替换备件编码-->
                    <el-form-item :label="nowLangue.replacementSpareCode" class="selectMB10">
                        <el-input  v-model="formInline.subMaterialCode" :placeholder="nowLangue.pleaseImport+' '+nowLangue.replacementSpareCode"></el-input>
                    </el-form-item>
                    <!--被替换备件编码-->
                    <el-form-item :label="nowLangue.replacedSpareCode" class="selectMB10">
                        <el-input  v-model="formInline.materialCode" :placeholder="nowLangue.pleaseImport+' '+nowLangue.replacedSpareCode"></el-input>
                    </el-form-item>
                    <!--状态-->
                    <el-form-item :label="nowLangue.status" class="selectMB10">
                        <el-select size="mini" clearable v-model="formInline.status" :placeholder="nowLangue.pleaseSelect">
                            <el-option v-for="(status,index) in statusList" :key="index" :label="status.label" :value="status.value"></el-option>
                        </el-select>
                    </el-form-item>
                    <!--替换备件名称-->
                    <el-form-item :label="nowLangue.replacementSpareName" class="selectMB10">
                        <el-input  v-model="formInline.subMaterialName" :placeholder="nowLangue.pleaseImport+' '+nowLangue.replacementSpareName"></el-input>
                    </el-form-item>
                    <!--被替换备件名称-->
                    <el-form-item :label="nowLangue.replacedSpareName" class="selectMB10">
                        <el-input  v-model="formInline.materialName" :placeholder="nowLangue.pleaseImport+' '+nowLangue.replacedSpareName"></el-input>
                    </el-form-item>
                    <el-form-item class="selectMB10">
                        <el-button class="bolder outsideBtnBS selectAll" :disabled="selectDisabled" size="mini" type="danger" @click="queryGReplacement()" v-text="nowLangue.query"></el-button>
                    </el-form-item>
                </el-form>
                <!--替换关系明细列表-->
                <label class="default-label" v-text="nowLangue.replaceRelationList"></label>
                <!--替换申请-->
                <el-button class="bolder outsideBtnBS" size="mini" type="danger" @click="gReplacementRequest" v-text="nowLangue.replacementRequest"></el-button>
                <!--导入-->
                <el-button class="bolder outsideBtnBS" @click="leadingIn" size="mini" type="danger" v-text="nowLangue.leadingIn"></el-button>
                <!--导出-->
                <el-button class="bolder outsideBtnBS" :disabled="leadoutDisabled" @click="leadingOut" size="mini" type="danger" v-text="nowLangue.leadingOut"></el-button>
                <el-table ref="multipleTable" :data="tableData" border style="width: 100%;" v-loading.body="loading1" :element-loading-text="nowLangue.isLoading">
                    <!--序-->
                    <el-table-column type="index" header-align="center" align="center" :label="nowLangue.sequence" width="40"></el-table-column>
                    <!--操作-->
                    <el-table-column :label="nowLangue.operate" header-align="center" align="center" width="120">
                        <template scope="scope">
                            <!-- 禁用 -->
                            <div class="operationItem bolder" v-if="scope.row.isActive" @click="handleStatus(scope.$index,scope.row)" v-text="nowLangue.forbidden"></div>
                            <!--启用-->
                            <div class="operationItem bolder" v-else @click="handleStatus(scope.$index,scope.row)" v-text="nowLangue.enable"></div>
                            <!--修改-->
                            <div class="operationItem bolder" v-if="!scope.row.isActive && ((scope.row.status==1 && (scope.row.formId==null || scope.row.formId=='')) ||(scope.row.status==2 && (scope.row.formId!=null && scope.row.formId!='')) )"  @click="handleGReplacementUpdate(scope.$index,scope.row)" v-text="nowLangue.update"></div>
                            <div class="operationItem disabled bolder" v-else v-text="nowLangue.update"></div>
                            <!--确认-->
                            <div class="operationItem bolder" v-if="scope.row.status==2" @click="handleGConfirmation(scope.$index,scope.row)" v-text="nowLangue.confirm"></div>
                            <div class="operationItem bolder disabled" v-else v-text="nowLangue.confirm"></div>
                        </template>
                    </el-table-column>
                    <!--状态-->
                    <el-table-column prop="statusName" :label="nowLangue.status" header-align="center" align="center" width="80" show-overflow-tooltip></el-table-column>
                    <!--紧急-->
                    <el-table-column prop="urgentflagName" :label="nowLangue.urgent" header-align="center" width="80" show-overflow-tooltip></el-table-column>
                    <!--产品线-->
                    <el-table-column prop="productLineName" :label="nowLangue.productLine" header-align="center" width="80" show-overflow-tooltip></el-table-column>
                    <!--替换备件编码-->
                    <el-table-column prop="subMaterialCode" :label="nowLangue.replacementSpareCode" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--替换备件名称-->
                    <el-table-column prop="subMaterialName" :label="nowLangue.replacementSpareName" header-align="center" width="80" show-overflow-tooltip></el-table-column>
                    <!--替换备件兼容性说明-->
                    <el-table-column prop="subMaterialEmcmemo" :label="nowLangue.replacementPartsCompatibilityDescription" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--需求替换关系-->
                    <el-table-column prop="reqSubTypeName" :label="nowLangue.demandSubstitutionRelation" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--确认替换关系-->
                    <el-table-column prop="subTypeName" :label="nowLangue.confirmSubstitutionRelation" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--被替换备件编码-->
                    <el-table-column prop="materialCode" :label="nowLangue.replacedSpareCode" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--被替换备件名称-->
                    <el-table-column prop="materialName" :label="nowLangue.replacedSpareName" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--被替换备件兼容性说明-->
                    <el-table-column prop="materialEmcmemo" :label="nowLangue.replacedPartsCompatibilityDescription" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--提交人-->
                    <el-table-column prop="creatorName" :label="nowLangue.submitter" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--提交时间-->
                    <el-table-column prop="createTime" :label="nowLangue.submissionTime" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--审核人-->
                    <el-table-column prop="auditUserName" :label="nowLangue.auditor" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--审核时间-->
                    <el-table-column prop="auditTime" :label="nowLangue.auditTime" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--响应时效(小时)-->
                    <el-table-column prop="responseTime" :label="nowLangue.responseTime" header-align="center" show-overflow-tooltip></el-table-column>
                </el-table>
                <!--分页-->
                <el-pagination v-if="isPaging" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="pageIndex"  :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :page-count="totalPage" :total="totalNumber"></el-pagination>
            </el-tab-pane>
            <!--组合替换-->
            <el-tab-pane :label="nowLangue.combinationReplacement" name="2">
                <el-form :inline="true" :model="formInline2" class="demo-form-inline" style="border-bottom:1px solid #ccc;">
                    <!--法人信息：-->
                    <el-form-item :label="nowLangue.legalPersonMes" class="selectMB10">
                        <el-input size="mini" v-if="legalPersonDropDown.length==1" disabled v-model="formInline2.legalPersonName" placeholder=""></el-input>
                        <el-select size="mini" v-else clearable v-model="formInline2.legalPersonName" :placeholder="nowLangue.pleaseSelect">
                            <el-option v-for="(legalPerson,index) in legalPersonDropDown" :key="index" :label="legalPerson.legalPersonName":value="legalPerson.legalPersonName">
                                <span>{{ legalPerson.legalPersonName }}</span>
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <!--产品线：-->
                    <el-form-item :label="nowLangue.productLine" class="selectMB10">
                        <el-select size="mini" clearable v-model="formInline2.legalPersonName" :placeholder="nowLangue.pleaseSelect">
                            <el-option v-for="(product,index) in productLineList" :key="index" :label="product.label" :value="product.value"></el-option>
                        </el-select>
                    </el-form-item>
                    <!--提交人：-->
                    <el-form-item :label="nowLangue.submitter">
                        <el-input  v-model="formInline2.legalPersonName" placeholder="请输入提交人"></el-input>
                    </el-form-item>
                    <!--提交时间：-->
                    <el-form-item :label="nowLangue.submissionTime" class="selectMB10">
                        <el-date-picker size="mini" v-model="formInline2.createTimeBegin" type="date" placeholder="选择起始日期" @change="selectedCreateTimeBegin"></el-date-picker>
                        &nbsp;至&nbsp;
                        <el-date-picker size="mini" v-model="formInline2.createTimeEnd" type="date" placeholder="选择结束日期" @change="selectedCreateTimeEnd"></el-date-picker>
                    </el-form-item>
                    <!--状态：-->
                    <el-form-item :label="nowLangue.status" class="selectMB10">
                        <el-select size="mini" clearable v-model="formInline2.status" :placeholder="nowLangue.pleaseSelect">
                            <el-option label="已保存" value="1"></el-option>
                            <el-option label="已提交" value="2"></el-option>
                            <el-option label="已审核" value="3"></el-option>
                            <el-option label="已审批" value="4"></el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item class="selectMB10">
                        <!--查询-->
                        <el-button class="bolder outsideBtnBS selectAll" :disabled="selectDisabled" size="mini" type="danger" @click="queryCReplacement(pageIndex2,pageSize2)" v-text="nowLangue.query"></el-button>
                    </el-form-item>
                </el-form>  
                <!--表格-->
                <!--组合替换明细列表：-->
                <label class="default-label" v-text="nowLangue.compositeReplacementDetailList"></label>
                <!--替换申请-->
                <el-button class="bolder outsideBtnBS" size="mini" type="danger" @click="cReplacementRequest" v-text="nowLangue.replacementRequest"></el-button>
                <el-table :data="tableData2" border style="width: 100%;" v-loading.body="loading2" :element-loading-text="nowLangue.isLoading" >
                    <!--序-->
                    <el-table-column type="index" header-align="center" align="center" :label="nowLangue.sequence" width="40"></el-table-column>
                    <!--操作-->
                    <el-table-column :label="nowLangue.operate" header-align="center" align="center" width="180">
                        <template scope="scope">
                            <!--禁用-->
                            <div class="operationItem bolder" v-if="scope.row.status" @click="handleStatus(scope.$index,scope.row)" v-text="nowLangue.forbidden"></div>
                            <!--启用-->
                            <div class="operationItem bolder" v-else @click="handleStatus(scope.$index,scope.row)" v-text="nowLangue.enable"></div>
                            <!--修改-->
                            <div class="operationItem disabled bolder" v-if="scope.row.status" v-text="nowLangue.update"></div>
                            <div class="operationItem bolder" v-else @click="handleCReplacementUpdate(scope.$index,scope.row)" v-text="nowLangue.update"></div>
                            <!--确认-->
                            <div class="operationItem bolder" @click="handleCConfirmation(scope.$index,scope.row)" v-text="nowLangue.confirm"></div>
                        </template>
                    </el-table-column>
                    <!--状态-->
                    <el-table-column prop="statusName" :label="nowLangue.status" header-align="center" align="center" width="80" show-overflow-tooltip></el-table-column>
                    <!--紧急-->
                    <el-table-column prop="totalCount" :label="nowLangue.urgent" header-align="center" width="80" show-overflow-tooltip></el-table-column>
                    <!--产品线-->
                    <el-table-column prop="currencyCodeWord" :label="nowLangue.productLine" header-align="center" width="80" show-overflow-tooltip></el-table-column>
                    <!--替换备件编码组合-->
                    <el-table-column prop="total" :label="nowLangue.replacementSpareCodeCombination" header-align="center"></el-table-column>
                    <!--替换备件组合兼容性说明-->
                    <el-table-column prop="creatorName" :label="nowLangue.replacementPartsCombinationCompatibilityDescription" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--需求替换关系-->
                    <el-table-column prop="createTime" :label="nowLangue.demandSubstitutionRelation" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--确认替换关系-->
                    <el-table-column prop="reviewerName" :label="nowLangue.confirmSubstitutionRelation" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--被替换备件编码组合-->
                    <el-table-column prop="reviewTime" :label="nowLangue.codedAssemblyOfReplacedSpare" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--被替换备件组合兼容性说明-->
                    <el-table-column prop="approvalTime" :label="nowLangue.descriptionOfReplacementPartsCombinationCompatibility" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--提交人-->
                    <el-table-column prop="reviewerName" :label="nowLangue.submitter" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--提交时间-->
                    <el-table-column prop="reviewTime" :label="nowLangue.submissionTime" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--确认人-->
                    <el-table-column prop="approverName" :label="nowLangue.confirmingPerson" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--确认时间-->
                    <el-table-column prop="approvalTime" :label="nowLangue.confirmationTime" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--响应时效(小时)-->
                    <el-table-column prop="approvalTime" :label="nowLangue.responseTime" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--说明-->
                    <el-table-column prop="reviewerName" :label="nowLangue.explain" header-align="center" show-overflow-tooltip></el-table-column>
                    <!--确认说明-->
                    <el-table-column prop="reviewerName" :label="nowLangue.confirmationNote" header-align="center" show-overflow-tooltip></el-table-column>
                </el-table>
                <!--分页-->
                <el-pagination v-if="isPaging" @size-change="handleSizeChange2" @current-change="handleCurrentChange2"
                               :current-page="pageIndex2"  :page-size="pageSize2"
                               layout="total, sizes, prev, pager, next, jumper" :page-count="totalPage2"
                               :total="totalNumber2"></el-pagination>
            </el-tab-pane>
        </el-tabs>
        <!--选择备件弹窗 选择备件-->
        <v-selectSpare v-on:closeDialog="closeDialog" v-on:selected-spare="confirmSpare" :dialogVisible="dialogForm2Visible"></v-selectSpare>
        <!--选择替换组弹窗 选择替换组-->
        <v-selectSpareGroup v-on:closeDialog="closeDialogGroup" v-on:selected-spareGroup="confirmSpareGroup" :dialogVisible="dialogFormGroupVisible"></v-selectSpareGroup>
        <!-- 新增普通替换 -->
        <el-dialog :title="nowLangue.newCommonReplacement" :visible.sync="createGReplacementVisible" size="large">
            <el-form :inline="true" :model="createGReplacementForm" ref="createGReplacementForm" class="demo-form-inline">
                <!--产品线：-->
                <el-form-item :label="nowLangue.productLine" class="selectMB10" prop="productLineId" :rules="[{ required: true, message: '产品线不能为空'}]">
                    <el-select size="mini" clearable v-model="createGReplacementForm.productLineId" :placeholder="nowLangue.pleaseSelect">
                        <el-option v-for="(product,index) in productLineList" :key="index" :label="product.label" :value="product.value"></el-option>
                    </el-select>
                </el-form-item>
                <!--提交人：-->
                <el-form-item :label="nowLangue.submitter" class="selectMB10">
                    <el-input size="mini" disabled v-model="createGReplacementForm.submiter" type="text"></el-input>
                </el-form-item>
                <!--提交时间：-->
                <el-form-item :label="nowLangue.submissionTime" class="selectMB10">
                    <el-input size="mini" disabled v-model="createGReplacementForm.submitDate" type="text"></el-input>
                </el-form-item>
                <!--备件替换方式：-->
                <el-form-item :label="nowLangue.spareReplacementMode" class="selectMB10" :rules="[{ required: true, message: '备件替换方式不能为空'}]">
                    <el-select size="mini" v-model="createGReplacementForm.type" :placeholder="nowLangue.pleaseSelect" @change="changeType()">
                        <el-option  label="一对一":value="1"></el-option> 
                        <el-option  label="一对多":value="2"></el-option> 
                        <el-option  label="多对多":value="3"></el-option> 
                        <el-option  label="备件与替换组":value="4"></el-option> 
                        <el-option  label="备件组与替换组":value="5"></el-option>
                    </el-select>
                </el-form-item>
                <!--说明：-->
                <el-form-item :label="nowLangue.explain" class="selectMB10 text-area text-area-64">
                    <el-input v-model="createGReplacementForm.description" size="mini" type="text" placeholder="请输入说明"></el-input>
                </el-form-item>
            </el-form>
            <!--表格-->
            <!--普通替换：-->
            <label class="default-label" v-text="nowLangue.generalReplace"></label>
            <!--是否紧急-->
            <el-checkbox v-model="createGReplacementForm.urgentflag" v-cloak>{{nowLangue.isUrgent}}</el-checkbox>
            <!--增行-->
            <el-button class="bolder outsideBtnBS" v-if="createGReplacementForm.type!=1" size="mini" type="danger" @click="handleCreateAddGRow" v-text="nowLangue.addRow"></el-button>
            <!--保存-->
            <el-button class="bolder outsideBtnBS" size="mini" :disabled="saveDisabled" type="danger" @click="handleCreateAddGSave(1)" v-text="nowLangue.save"></el-button>
            <!--保存并提交-->
            <el-button class="bolder outsideBtnBS" size="mini" :disabled="saveDisabled" type="danger" @click="handleCreateAddGSave(2)" v-text="nowLangue.saveAndSubmit"></el-button>
            <el-table :data="createGReplaceData" border style="width: 100%;margin-bottom:10px;">
                <!--序-->
                <el-table-column type="index" header-align="center" align="center" :label="nowLangue.sequence" width="40"></el-table-column>
                <!--操作-->
                <el-table-column v-if="createGReplacementForm.type!=1" :label="nowLangue.operate" header-align="center" align="center" width="60">
                    <template scope="scope">
                        <div class="operationItem bolder disabled" v-if="scope.$index==0" v-text="nowLangue.delete"><!--删除--></div>
                        <div class="operationItem bolder" v-else @click="deleteSpare(scope.$index)" v-text="nowLangue.delete"><!--删除--></div>
                    </template>
                </el-table-column>
                <!--替换备件组编码-->
                <el-table-column v-if="createGReplacementForm.type==5" prop="groupCode1" :label="nowLangue.replacementSparePartCode" header-align="center" show-overflow-tooltip>
                    <template scope="scope">
                        <el-input size="mini" class="disabledClick" disabled v-if="scope.row.searchFlag" v-model="scope.row.groupCode1" icon="search" @click="querySpareGroup(scope.$index,'1')"></el-input>
                        <el-input size="mini" v-else disabled v-model="scope.row.groupCode1"></el-input>
                    </template>
                </el-table-column>
                 <!--替换备件编码-->
                <el-table-column v-else prop="code1" :label="nowLangue.replacementSpareCode" header-align="center" show-overflow-tooltip>
                    <template scope="scope">
                        <el-input size="mini" class="disabledClick" disabled v-if="scope.row.searchFlag" v-model="scope.row.code1" icon="search" @click="querySpare(scope.$index,'1','createGReplaceData')"></el-input>
                        <el-input size="mini" v-else disabled v-model="scope.row.code1"></el-input>
                    </template>
                </el-table-column>
                <!--替换备件组名称-->
                <el-table-column v-if="createGReplacementForm.type==5" prop="name1" :label="nowLangue.replacementSparePartName" header-align="center" show-overflow-tooltip></el-table-column>
                <!--替换备件名称-->
                <el-table-column v-else prop="name1" :label="nowLangue.replacementSpareName" header-align="center" show-overflow-tooltip></el-table-column>

                <!--需求替换关系-->
                <el-table-column prop="reqSubType" :label="nowLangue.demandSubstitutionRelation" header-align="center">
                    <template scope="scope">
                        <el-select size="mini" clearable v-model="scope.row.reqSubType" :placeholder="nowLangue.pleaseSelect" @change="changeReq(scope.$index)">
                            <el-option v-for="(reqSub,index) in reqSubTypeList" :key="index" :label="reqSub.label":value="reqSub.value"></el-option>
                        </el-select>
                    </template>
                </el-table-column>

                <!--被替换备件组编码-->
                <el-table-column v-if="createGReplacementForm.type==4 || createGReplacementForm.type==5" prop="groupCode2" :label="nowLangue.replacedSparePartCode" header-align="center" show-overflow-tooltip>
                    <template scope="scope">
                        <el-input size="mini" class="disabledClick" disabled v-model="scope.row.groupCode2" icon="search" @click="querySpareGroup(scope.$index,'2')"></el-input>
                    </template>
                </el-table-column>
                <!--被替换备件编码-->
                <el-table-column v-else prop="code2" :label="nowLangue.replacedSpareCode" header-align="center" show-overflow-tooltip>
                    <template scope="scope">
                        <el-input size="mini" class="disabledClick" disabled v-model="scope.row.code2" icon="search" @click="querySpare(scope.$index,'2','createGReplaceData')"></el-input>
                    </template>
                </el-table-column>
                <!--被替换备件名称-->
                <el-table-column v-if="createGReplacementForm.type==4 || createGReplacementForm.type==5" prop="name2" :label="nowLangue.replacedSpareName" header-align="center" show-overflow-tooltip></el-table-column>
                <!--被替换备件组名称-->
                <el-table-column v-else prop="name2" :label="nowLangue.replacedSparePartName" header-align="center" show-overflow-tooltip></el-table-column>

            </el-table>
        </el-dialog>
        <!-- 修改普通替换 -->
        <el-dialog :title="nowLangue.modifyCommonReplacement" :visible.sync="updateGReplacementVisible" size="large">
            <el-form :inline="true" :model="updateGReplacementForm" ref="updateGReplacementForm" class="demo-form-inline">
                <!--产品线-->
                <el-form-item :label="nowLangue.productLine" class="selectMB10" prop="productLineId" :rules="[{ required: true, message: '产品线不能为空'}]">
                    <el-select size="mini" clearable v-model="updateGReplacementForm.productLineId" :placeholder="nowLangue.pleaseSelect">
                        <el-option v-for="(product,index) in productLineList" :key="index" :label="product.label" :value="product.value"></el-option>
                    </el-select>
                </el-form-item>
                <!--提交人-->
                <el-form-item :label="nowLangue.submitter" class="selectMB10">
                    <el-input disabled size="mini" type="text" v-model="updateGReplacementForm.submiter"></el-input>
                </el-form-item>
                <!--提交时间：-->
                <el-form-item :label="nowLangue.submissionTime" class="selectMB10">
                    <el-input disabled size="mini" v-model="updateGReplacementForm.submitDate" type="text"></el-input>
                </el-form-item>
                <!--说明：-->
                <el-form-item :label="nowLangue.explain" class="selectMB10 text-area text-area-64">
                    <el-input size="mini" v-model="updateGReplacementForm.description" type="text" placeholder="请输入说明"></el-input>
                </el-form-item>
            </el-form>
            <!--表格-->
            <!--普通替换：-->
            <label class="default-label" v-text="nowLangue.generalReplace"></label>
            <!--是否紧急-->
            <el-checkbox v-model="updateGReplacementForm.urgentflag" v-cloak>{{nowLangue.isUrgent}}</el-checkbox>
            <!--保存-->
            <el-button class="bolder outsideBtnBS" size="mini" type="danger" :disabled="updateDisabled" @click="handleUpdateAddGSave(1)" v-text="nowLangue.save"></el-button>
            <!--保存并提交-->
            <el-button class="bolder outsideBtnBS" size="mini" type="danger" :disabled="updateDisabled" @click="handleUpdateAddGSave(2)" v-text="nowLangue.saveAndSubmit"></el-button>
            <el-table :data="updateGReplaceData" border style="width: 100%;margin-bottom:10px;">
                <!--序-->
                <el-table-column type="index" header-align="center" align="center" :label="nowLangue.sequence" width="40"></el-table-column>
                <!--替换备件编码-->
                <el-table-column prop="subMaterialCode" :label="nowLangue.replacementSpareCode" header-align="center" show-overflow-tooltip>
                    <template scope="scope">
                        <el-input class="disabledClick" size="mini" disabled v-model="scope.row.subMaterialCode" icon="search" @click="querySpare(scope.$index,'1','updateGReplaceData')"></el-input>
                    </template>
                </el-table-column>
                <!--替换备件名称 -->
                <el-table-column prop="subMaterialName" :label="nowLangue.replacementSpareName" header-align="center" show-overflow-tooltip></el-table-column>
                <!--需求替换关系-->
                <el-table-column prop="reqSubType" :label="nowLangue.demandSubstitutionRelation" header-align="center" show-overflow-tooltip>
                    <template scope="scope">
                        <el-select size="mini" clearable v-model="scope.row.reqSubType" :placeholder="nowLangue.pleaseSelect">
                            <el-option v-for="(reqSub,index) in reqSubTypeList" :key="index" :label="reqSub.label" :value="reqSub.value"></el-option>
                        </el-select>
                    </template>
                </el-table-column>
                <!--被替换备件编码-->
                <el-table-column prop="materialCode" :label="nowLangue.replacedSpareCode" header-align="center" show-overflow-tooltip>
                    <template scope="scope">
                        <el-input class="disabledClick" size="mini" disabled v-model="scope.row.materialCode" icon="search" @click="querySpare(scope.$index,'2','updateGReplaceData')"></el-input>
                    </template>
                </el-table-column>
                <!--被替换备件名称-->
                <el-table-column prop="materialName" :label="nowLangue.replacedSpareName" header-align="center" show-overflow-tooltip></el-table-column>
            </el-table>
        </el-dialog>
        <!-- 确认普通替换 -->
        <el-dialog :title="nowLangue.confirmCommonReplacement" :visible.sync="confirmGReplacementVisible" size="large">
            <el-form :inline="true" :model="confirmGReplacementForm" class="demo-form-inline">
                <!--产品线-->
                <el-form-item :label="nowLangue.productLine" class="selectMB10">
                    <el-input size="mini" disabled type="text" v-model="confirmGReplacementForm.productLineName"></el-input>
                </el-form-item>
                <!--提交人-->
                <el-form-item :label="nowLangue.submitter" class="selectMB10">
                    <el-input size="mini" disabled type="text" v-model="confirmGReplacementForm.submiter"></el-input>
                </el-form-item>
                <!--提交时间：-->
                <el-form-item :label="nowLangue.submissionTime" class="selectMB10">
                    <el-input size="mini" disabled type="text" v-model="confirmGReplacementForm.submitDate"></el-input>
                </el-form-item>
                <!--说明：-->
                <el-form-item :label="nowLangue.explain" class="selectMB10 text-area text-area-64">
                    <el-input size="mini" type="text" disabled v-model="confirmGReplacementForm.description"></el-input>
                </el-form-item>
            </el-form>
            <!--表格-->
            <!--普通替换：-->
            <label class="default-label" v-text="nowLangue.generalReplace"></label>
            <!--是否紧急-->
            <el-checkbox v-model="confirmGReplacementForm.urgentflag" disabled v-cloak>{{nowLangue.isUrgent}}</el-checkbox>
            <!--确认通过-->
            <el-button class="bolder outsideBtnBS" size="mini" type="danger" :disabled="confirmDisablde" @click="handleConfirm(3)" v-text="nowLangue.confirmPass"></el-button>
            <!--确认不通过-->
            <el-button class="bolder outsideBtnBS" size="mini" type="danger" :disabled="confirmDisablde" @click="handleConfirm(4)" v-text="nowLangue.confirmNotThrough"></el-button>
            <el-table :data="confirmGReplaceData" border style="width: 100%;margin-bottom:10px;">
                <!--序-->
                <el-table-column type="index" header-align="center" align="center" :label="nowLangue.sequence" width="40"></el-table-column>
                <!--替换备件编码-->
                <el-table-column prop="subMaterialCode" :label="nowLangue.replacementSpareCode" header-align="center" show-overflow-tooltip>
                </el-table-column>
                <!--替换备件名称-->
                <el-table-column prop="subMaterialName" :label="nowLangue.replacementSpareName" header-align="center" show-overflow-tooltip></el-table-column>
                <!--需求替换关系-->
                <el-table-column prop="reqSubTypeName" :label="nowLangue.demandSubstitutionRelation" header-align="center" show-overflow-tooltip></el-table-column>
                <!--确认替换关系-->
                <el-table-column prop="subType" :label="nowLangue.confirmSubstitutionRelation"  header-align="center" show-overflow-tooltip width="180">
                    <template scope="scope">
                        <el-select size="mini" v-model="scope.row.subType" :placeholder="nowLangue.pleaseSelect">
                            <el-option v-for="(subType,index) in reqSubTypeList" :key="index" :label="subType.label" :value="subType.value"></el-option>
                        </el-select>
                    </template>
                </el-table-column>
                <!--被替换备件编码-->
                <el-table-column prop="materialCode" :label="nowLangue.replacedSpareCode" header-align="center" show-overflow-tooltip>
                </el-table-column>
                <!--被替换备件名称-->
                <el-table-column prop="materialName" :label="nowLangue.replacedSpareName" header-align="center" show-overflow-tooltip></el-table-column>
            </el-table>
            <el-form :inline="true" :model="confirmGReplacementForm" ref="confirmGReplacementForm" class="demo-form-inline">
                <!--状态：-->
                <el-form-item :label="nowLangue.status" class="selectMB10">
                    <el-radio-group v-model="confirmGReplacementForm.active">
                        <el-radio :label="true">启用</el-radio>
                        <el-radio :label="false">禁用</el-radio>
                    </el-radio-group>
                </el-form-item>
                <!--确认说明：-->
                <el-form-item :label="nowLangue.confirmationNote" class="selectMB10 text-area text-area-66">
                    <el-input v-model="confirmGReplacementForm.affirmDes" size="mini" type="text" placeholder="请输入确认说明"></el-input>
                </el-form-item>
                <!--被替换备件兼容性说明-->
                <el-form-item :label="nowLangue.replacedPartsCompatibilityDescription" class="selectMB10 text-area text-area-138">
                    <el-input v-model="confirmGReplacementForm.materialEmcmemo" size="mini" type="text" placeholder="请输入被替换备件兼容性说明"></el-input>
                </el-form-item>
                <!--替换备件兼容性说明：-->
                <el-form-item :label="nowLangue.replacementPartsCompatibilityDescription" class="selectMB10 text-area text-area-138">
                    <el-input v-model="confirmGReplacementForm.subMaterialEmcmemo" size="mini" type="text" placeholder="请输入替换备件兼容性说明"></el-input>
                </el-form-item>
            </el-form>
        </el-dialog>
        <!--确认替换导入弹窗导入替换关系-->
        <el-dialog :title="nowLangue.leadingReplace" id="importFile" :visible.sync="importFileVisible" size="tiny"  :lock-scroll="false">
            <el-upload class="upload-demo"  :action="action" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" :on-preview="handlePreview" :on-remove="handleRemove" :file-list="fileList" :before-upload="beforeAvatarUpload" :on-success="handleAvatarSuccess">
                <el-button size="mini" type="danger" v-text="nowLangue.clickUpload"><!--点击上传--></el-button>
                <div slot="tip" class="el-upload__tip" v-text="nowLangue.onlyUploadExcel"><!--只能上传excel文件--></div>
            </el-upload>
        </el-dialog>
        <!-- 新增组合替换 -->
        <el-dialog :title="nowLangue.newCompositeReplacement" :visible.sync="createCReplacementVisible" size="large">
            <el-form :inline="true" :model="createCReplacementForm" ref="createCReplacementForm" class="demo-form-inline">
                <!---->
                <el-form-item :label="nowLangue.productLine" class="selectMB10" prop="legalPersonName" :rules="[{ required: true, message: '产品线不能为空'}]">
                    <el-select size="mini" clearable v-model="createCReplacementForm.legalPersonName" :placeholder="nowLangue.pleaseSelect">
                        <el-option v-for="(legalPerson,index) in legalPersonDropDown" :key="index" :label="legalPerson.legalPersonName":value="legalPerson.legalPersonName">
                            <span>{{ legalPerson.legalPersonName }}</span>
                        </el-option>
                    </el-select>
                </el-form-item>
                <!--需求替换关系-->
                <el-form-item :label="nowLangue.demandSubstitutionRelation" class="selectMB10" prop="legalPersonName" :rules="[{ required: true, message: '需求替换关系不能为空'}]">
                    <el-select size="mini" clearable v-model="createCReplacementForm.legalPersonName" :placeholder="nowLangue.pleaseSelect">
                        <el-option v-for="(product,index) in productLineList" :key="index" :label="product.label" :value="product.value"></el-option>
                    </el-select>
                </el-form-item>
                <!---->
                <el-form-item :label="nowLangue.submitter" class="selectMB10">
                    <el-input size="mini" type="text" placeholder="请输入提交人"></el-input>
                </el-form-item>
                <!--提交时间：-->
                <el-form-item :label="nowLangue.submissionTime" class="selectMB10" prop="enquiryStartDate" :rules="[{ required: true, message: '提交时间不能为空'}]">
                    <el-date-picker size="mini" v-model="createCReplacementForm.enquiryStartDate" type="date"  placeholder="请输入提交时间"@change="selectedEnquiryStartDate"></el-date-picker>
                </el-form-item>
                <!--说明：-->
                <el-form-item :label="nowLangue.explain" class="selectMB10 text-area text-area-64">
                    <el-input size="mini" type="text" placeholder="请输入说明"></el-input>
                </el-form-item>
            </el-form>
            <!--表格-->
            <!--组合替换：-->
            <label class="default-label" v-text="nowLangue.combinationReplacement"></label>
            <!--是否紧急-->
            <el-checkbox v-model="isUrgent" v-cloak>{{nowLangue.isUrgent}}</el-checkbox>
            <!--新增按钮-->
            <!--增行-->
            <el-button class="bolder outsideBtnBS" size="mini" type="danger" @click="handleCreateAddCRow" v-text="nowLangue.addRow"></el-button>
            <!--保存-->
            <el-button class="bolder outsideBtnBS" size="mini" type="danger" @click="handleCreateAddCSave" v-text="nowLangue.save"></el-button>
            <!--保存并退出-->
            <el-button class="bolder outsideBtnBS" size="mini" type="danger" @click="handleCreateAddCSAE" v-text="nowLangue.saveAndExit"></el-button>
            <el-table :data="addCReplace" border style="width: 100%;">
                <!--序-->
                <el-table-column type="index" header-align="center" align="center" :label="nowLangue.sequence" width="40"></el-table-column>
                <!--被替换备件编码-->
                <el-table-column prop="code" :label="nowLangue.replacedSpareCode" header-align="center" show-overflow-tooltip>
                    <template scope="scope">
                        <el-input size="mini" v-model="scope.row.code" icon="search" :on-icon-click="querySpare"></el-input>
                    </template>
                </el-table-column>
                <!--被替换备件名称-->
                <el-table-column prop="name" :label="nowLangue.replacedSpareName" header-align="center" show-overflow-tooltip></el-table-column>
                <!--需求替换关系-->
                <el-table-column prop="name" :label="nowLangue.demandSubstitutionRelation" header-align="center" show-overflow-tooltip></el-table-column>
                <!--替换备件编码-->
                <el-table-column prop="code" :label="nowLangue.replacementSpareCode" header-align="center" show-overflow-tooltip>
                    <template scope="scope">
                        <el-input size="mini" v-model="scope.row.code" icon="search" :on-icon-click="querySpare"></el-input>
                    </template>
                </el-table-column>
                <!--替换备件名称-->
                <el-table-column prop="name" :label="nowLangue.replacementSpareName" header-align="center" show-overflow-tooltip></el-table-column>
            </el-table>
        </el-dialog>
        <!-- 修改组合替换 -->
        <el-dialog :title="nowLangue.modifyCombineReplace" :visible.sync="updateCReplacementVisible" size="large">
            <el-form :inline="true" :model="updateCReplacementForm" ref="updateCReplacementForm" class="demo-form-inline">
                <!--产品线-->
                <el-form-item :label="nowLangue.productLine" class="selectMB10" prop="legalPersonName" :rules="[{ required: true, message: '产品线不能为空'}]">
                    <el-select size="mini" clearable v-model="updateCReplacementForm.legalPersonName" :placeholder="nowLangue.pleaseSelect">
                        <el-option v-for="(product,index) in productLineList" :key="index" :label="product.label" :value="product.value"></el-option>
                    </el-select>
                </el-form-item>
                <!--需求替换关系-->
                <el-form-item :label="nowLangue.demandSubstitutionRelation" class="selectMB10" prop="legalPersonName" :rules="[{ required: true, message: '需求替换关系不能为空'}]">
                    <el-select size="mini" clearable v-model="updateCReplacementForm.legalPersonName" :placeholder="nowLangue.pleaseSelect">
                        <el-option v-for="(product,index) in productLineList" :key="index" :label="product.label" :value="product.value"></el-option>
                    </el-select>
                </el-form-item>
                <!--提交人-->
                <el-form-item :label="nowLangue.submitter" class="selectMB10">
                    <el-input size="mini" type="text" placeholder="请输入提交人"></el-input>
                </el-form-item>
                <!--提交时间：-->
                <el-form-item :label="nowLangue.submissionTime" class="selectMB10" prop="enquiryStartDate" :rules="[{ required: true, message: '提交时间不能为空'}]">
                    <el-date-picker size="mini" v-model="updateCReplacementForm.enquiryStartDate" type="date"  placeholder="请输入提交时间"@change="selectedEnquiryStartDate"></el-date-picker>
                </el-form-item>
                <!--说明：-->
                <el-form-item :label="nowLangue.explain" class="selectMB10 text-area text-area-64">
                    <el-input size="mini" type="text" placeholder="请输入说明"></el-input>
                </el-form-item>
            </el-form>
            <!--表格-->
            <!--组合替换：-->
            <label class="default-label" v-text="nowLangue.combinationReplacement"></label>
            <!--是否紧急-->
            <el-checkbox v-model="isUrgent" v-cloak>{{nowLangue.isUrgent}}</el-checkbox>
            <!--新增按钮-->
            <!--增行-->
            <el-button class="bolder outsideBtnBS" size="mini" type="danger" @click="handleUpdateAddCRow" v-text="nowLangue.addRow"></el-button>
            <!--保存-->
            <el-button class="bolder outsideBtnBS" size="mini" type="danger" @click="handleUpdateAddCSave" v-text="nowLangue.save"></el-button>
            <!--保存并退出-->
            <el-button class="bolder outsideBtnBS" size="mini" type="danger" @click="handleUpdateAddCSAE" v-text="nowLangue.saveAndExit"></el-button>
            <el-table :data="addCReplace" border style="width: 100%;">
                <!--序-->
                <el-table-column type="index" header-align="center" align="center" :label="nowLangue.sequence" width="40"></el-table-column>
                <!--被替换备件编码-->
                <el-table-column prop="code" :label="nowLangue.replacedSpareCode" header-align="center" show-overflow-tooltip>
                    <template scope="scope">
                        <el-input size="mini" v-model="scope.row.code" icon="search" :on-icon-click="querySpare"></el-input>
                    </template>
                </el-table-column>
                <!--被替换备件名称-->
                <el-table-column prop="name" :label="nowLangue.replacedSpareName" header-align="center" show-overflow-tooltip></el-table-column>
                <!--需求替换关系-->
                <el-table-column prop="name" :label="nowLangue.demandSubstitutionRelation" header-align="center" show-overflow-tooltip></el-table-column>
                <!--替换备件编码-->
                <el-table-column prop="code" :label="nowLangue.replacementSpareCode" header-align="center" show-overflow-tooltip>
                    <template scope="scope">
                        <el-input size="mini" v-model="scope.row.code" icon="search" :on-icon-click="querySpare"></el-input>
                    </template>
                </el-table-column>
                <!--替换备件名称-->
                <el-table-column prop="name" :label="nowLangue.replacementSpareName" header-align="center" show-overflow-tooltip></el-table-column>
            </el-table>
        </el-dialog>
         <!-- 确认组合替换 -->
        <el-dialog :title="nowLangue.confirmCombinationReplacement" :visible.sync="confirmCReplaceVisible" size="large">
            <el-form :inline="true" :model="confirmCReplaceForm" ref="confirmCReplaceForm" class="demo-form-inline">
                <!--产品线-->
                <el-form-item :label="nowLangue.productLine" class="selectMB10" prop="legalPersonName" :rules="[{ required: true, message: '产品线不能为空'}]">
                    <el-select size="mini" clearable v-model="confirmCReplaceForm.legalPersonName" :placeholder="nowLangue.pleaseSelect">
                        <el-option v-for="(product,index) in productLineList" :key="index" :label="product.label" :value="product.value"></el-option>
                    </el-select>
                </el-form-item>
                <!--需求替换关系-->
                <el-form-item :label="nowLangue.demandSubstitutionRelation" class="selectMB10" prop="legalPersonName" :rules="[{ required: true, message: '需求替换关系不能为空'}]">
                    <el-select size="mini" clearable v-model="confirmCReplaceForm.legalPersonName" :placeholder="nowLangue.pleaseSelect">
                        <el-option v-for="(product,index) in productLineList" :key="index" :label="product.label" :value="product.value"></el-option>
                    </el-select>
                </el-form-item>
                <!--提交人-->
                <el-form-item :label="nowLangue.submitter" class="selectMB10">
                    <el-input size="mini" type="text" placeholder="请输入提交人"></el-input>
                </el-form-item>
                <!--提交时间：-->
                <el-form-item :label="nowLangue.submissionTime" class="selectMB10" prop="enquiryStartDate" :rules="[{ required: true, message: '提交时间不能为空'}]">
                    <el-date-picker size="mini" v-model="confirmCReplaceForm.enquiryStartDate" type="date" placeholder="请输入提交时间"@change="selectedEnquiryStartDate"></el-date-picker>
                </el-form-item>
                <!--说明：-->
                <el-form-item :label="nowLangue.explain" class="selectMB10 text-area text-area-64">
                    <el-input size="mini" type="text" placeholder="请输入说明" disabled></el-input>
                </el-form-item>
            </el-form>
            <!--表格-->
            <!--组合替换：-->
            <label class="default-label" v-text="nowLangue.combinationReplacement"></label>
            <!--是否紧急-->
            <el-checkbox v-model="isUrgent" v-cloak>{{nowLangue.isUrgent}}</el-checkbox>
            <!--确认不成立-->
            <el-button class="bolder outsideBtnBS" size="mini" type="danger" @click="failToConfirm" v-text="nowLangue.failToConfirm"></el-button>
            <!--确认成立-->
            <el-button class="bolder outsideBtnBS" size="mini" type="danger" @click="successToConfirm" v-text="nowLangue.establishmentByConfirmation"></el-button>
            <!--确认替换关系-->
            <el-form :inline="true" :model="confirmCReplaceForm" ref="confirmCReplaceForm" class="demo-form-inline">
                <el-form-item :label="nowLangue.confirmSubstitutionRelation"  class="selectMB10" prop="legalPersonName" :rules="[{ required: true, message: '确认替换关系不能为空'}]">
                    <el-select size="mini" clearable v-model="confirmCReplaceForm.legalPersonName" :placeholder="nowLangue.pleaseSelect">
                        <el-option v-for="(product,index) in productLineList" :key="index" :label="product.label" :value="product.value"></el-option>
                    </el-select>
                </el-form-item>
                <!--状态：-->
                <el-form-item :label="nowLangue.status">
                    <el-radio-group v-model="confirmCReplaceForm.status">
                        <el-radio :label="true">启用</el-radio>
                        <el-radio :label="false">禁用</el-radio>
                    </el-radio-group>
                </el-form-item>
                <!--确认人-->
                <el-form-item :label="nowLangue.confirmingPerson" class="selectMB10">
                    <el-input size="mini" type="text" placeholder="请输入确认人"></el-input>
                </el-form-item>
                <!--确认时间-->
                <el-form-item :label="nowLangue.confirmationTime"  class="selectMB10" prop="enquiryStartDate" :rules="[{ required: true, message: '提交时间不能为空'}]">
                    <el-date-picker size="mini" v-model="confirmCReplaceForm.enquiryStartDate" type="date" @change="selectedEnquiryStartDate"></el-date-picker>
                </el-form-item>
                <!--确认说明：-->
                <el-form-item :label="nowLangue.confirmationNote" class="selectMB10 text-area text-area-66">
                    <el-input size="mini" type="text" placeholder="请输入确认说明"></el-input>
                </el-form-item>
            </el-form>
            <el-table :data="confirmCReplaceData" border style="width: 100%;margin-bottom:10px;">
                <!--序-->
                <el-table-column type="index" header-align="center" align="center" :label="nowLangue.sequence" width="40"></el-table-column>
                <!--被替换备件编码-->
                <el-table-column prop="code" :label="nowLangue.replacedSpareCode" header-align="center" show-overflow-tooltip></el-table-column>
                <!--被替换备件名称-->
                <el-table-column prop="name" :label="nowLangue.replacedSpareName" header-align="center" show-overflow-tooltip></el-table-column>
                <!--需求替换关系-->
                <el-table-column prop="name" :label="nowLangue.demandSubstitutionRelation" header-align="center" show-overflow-tooltip></el-table-column>
                <!--确认替换关系-->
                <el-table-column prop="name" :label="nowLangue.confirmSubstitutionRelation"  header-align="center" show-overflow-tooltip></el-table-column>
                <!--替换备件编码-->
                <el-table-column prop="code" :label="nowLangue.replacementSpareCode" header-align="center" show-overflow-tooltip></el-table-column>
                <!--替换备件名称-->
                <el-table-column prop="name" :label="nowLangue.replacementSpareName" header-align="center" show-overflow-tooltip></el-table-column>
            </el-table>
            <el-form :inline="true" :model="confirmCReplaceForm" ref="confirmCReplaceForm" class="demo-form-inline">
                <!--被替换组合兼容说明-->
                <el-form-item :label="nowLangue.replacedByACombinationOfCompatibleInstructions" class="selectMB10 text-area text-area-138">
                    <el-input size="mini" type="text" placeholder="请输入被替换组合兼容说明"></el-input>
                </el-form-item>
                <!--替换组合兼容说明-->
                <el-form-item :label="nowLangue.replaceAssemblyCompatibilityInstructions" class="selectMB10 text-area text-area-138">
                    <el-input size="mini" type="text" placeholder="请输入替换组合兼容说明"></el-input>
                </el-form-item>
            </el-form>
        </el-dialog>
    </div>
   
</template>
<script>
  export default  {
    data() {
        return {
            language:{
                zh:{
                    "pleaseSelect":"请选择",
                    "pleaseImport":"请输入",
                    "generalReplace":"普通替换",
                    "legalPersonMes":"法人信息",
                    "productLine":"产品线",
                    "submitter":"提交人",
                    "submissionTime":"提交时间",
                    "replacementSpareCode":"替换备件编码",
                    "replacedSpareCode":"被替换备件编码",
                    "status":"状态",
                    "replacementSpareName":"替换备件名称",
                    "replacedSpareName":"被替换备件名称",
                    "query":"查询",
                    "replaceRelationList":"替换关系明细列表",
                    "replacementRequest":"替换申请",
                    "sequence":"序",
                    "operate":"操作",
                    "forbidden":"禁用",
                    "enable":"启用",
                    "update":"修改",
                    "confirm":"确认",
                    "urgent":"紧急",
                    "replacementPartsCompatibilityDescription":"替换备件兼容性说明",
                    "demandSubstitutionRelation":"需求替换关系",
                    "confirmSubstitutionRelation":"确认替换关系",
                    "replacedPartsCompatibilityDescription":"被替换备件兼容性说明",
                    "auditor":"审核人",
                    "auditTime":"审核时间",
                    "responseTime":"响应时间(小时)",
                    "combinationReplacement":"组合替换",
                    "compositeReplacementDetailList":"组合替换明细列表",
                    "replacementSpareCodeCombination":"替换备件编码组合",
                    "replacementPartsCombinationCompatibilityDescription":"替换备件组合兼容性说明",
                    "codedAssemblyOfReplacedSpare":"被替换备件编码组合",
                    "descriptionOfReplacementPartsCombinationCompatibility":"被替换备件组合兼容性说明",
                    "confirmingPerson":"确认人",
                    "confirmationTime":"确认时间",
                    "explain":"说明",
                    "confirmationNote":"确认说明",
                    "selectSpare":"选择备件",
                    "spareCode":"备件编码",
                    "spareName":"备件名称",
                    "determine":"确定",
                    "select":"选择",
                    "newCommonReplacement":"新增普通替换",
                    "spareReplacementMode":"备件替换方式",
                    "isUrgent":"是否紧急",
                    "addRow":"增行",
                    "save":"保存",
                    "saveAndSubmit":"保存并提交",
                    "replacedSparePartCode":"被替换备件组编码",
                    "replacedSparePartName":"被替换备件组名称",
                    "replacementSparePartCode":"替换备件组编码",
                    "replacementSparePartName":"替换备件组名称",
                    "modifyCommonReplacement":"修改普通替换",
                    "confirmCommonReplacement":"确认普通替换",
                    "confirmPass":"确认通过",
                    "confirmNotThrough":"确认不通过",
                    "failToConfirm":"确认不成立",
                    "establishmentByConfirmation":"确认成立",
                    "replacedByACombinationOfCompatibleInstructions":"被替换组合兼容说明",
                    "newCompositeReplacement":"新增组合替换",
                    "saveAndExit":"保存并退出",
                    "modifyCombineReplace":"修改组合替换",
                    "confirmCombinationReplacement":"确认组合替换",
                    "replaceAssemblyCompatibilityInstructions":"替换组合兼容说明",
                    "delete":"删除",
                    "leadingIn":"导入",
                    "leadingOut":"导出",
                    "leadingReplace":"导入替换关系",
                    "onlyUploadExcel":"只能上传excel文件",
                    "clickUpload":"点击上传",
                    "isLoading":"正在拼命加载中"
                },
                en:{
                    "pleaseSelect":"pleaseSelect",
                    "pleaseImport":"pleaseImport",
                    "generalReplace":"generalReplace",
                    "legalPersonMes":"legalPersonMes",
                    "productLine":"productLine",
                    "submitter":"submitter",
                    "submissionTime":"submissionTime",
                    "replacementSpareCode":"replacementSpareCode",
                    "replacedSpareCode":"replacedSpareCode",
                    "replacementSpareName":"replacementSpareName",
                    "replacedSpareName":"replacedSpareName",
                    "query":"query",
                    "replaceRelationList":"replaceRelationList",
                    "replacementRequest":"replacementRequest",
                    "sequence":"sequence",
                    "operate":"operate",
                    "forbidden":"forbidden",
                    "enable":"enable",
                    "update":"update",
                    "confirm":"confirm",
                    "status":"status",
                    "urgent":"urgent",
                    "replacementPartsCompatibilityDescription":"replacementPartsCompatibilityDescription",
                    "demandSubstitutionRelation":"demandSubstitutionRelation",
                    "confirmSubstitutionRelation":"confirmSubstitutionRelation",
                    "replacedPartsCompatibilityDescription":"replacedPartsCompatibilityDescription",
                    "auditTime":"auditTime",
                    "responseTime":"responseTime(hour)",
                    "combinationReplacement":"combinationReplacement",
                    "compositeReplacementDetailList":"compositeReplacementDetailList",
                    "replacementSpareCodeCombination":"replacementSpareCodeCombination",
                    "replacementPartsCombinationCompatibilityDescription":"replacementPartsCombinationCompatibilityDescription",
                    "codedAssemblyOfReplacedSpare":"codedAssemblyOfReplacedSpare",
                    "descriptionOfReplacementPartsCombinationCompatibility":"descriptionOfReplacementPartsCombinationCompatibility",
                    "confirmingPerson":"confirmingPerson",
                    "confirmationTime":"confirmationTime",
                    "explain":"explain",
                    "confirmationNote":"confirmationNote",
                    "selectSpare":"selectSpare",
                    "spareCode":"spareCode",
                    "spareName":"spareName",
                    "determine":"determine",
                    "select":"select",
                    "newCommonReplacement":"newCommonReplacement",
                    "spareReplacementMode":"spareReplacementMode",
                    "isUrgent":"isUrgent",
                    "addRow":"addRow",
                    "save":"save",
                    "saveAndSubmit":"saveAndSubmit",
                    "replacedSparePartCode":"replacedSparePartCode",
                    "replacedSparePartName":"replacedSparePartName",
                    "replacementSparePartCode":"replacementSparePartCode",
                    "replacementSparePartName":"replacementSparePartName",
                    "modifyCommonReplacement":"modifyCommonReplacement",
                    "confirmCommonReplacement":"confirmCommonReplacement",
                    "confirmPass":"confirmPass",
                    "confirmNotThrough":"confirmNotThrough",
                    "failToConfirm":"failToConfirm",
                    "establishmentByConfirmation":"establishmentByConfirmation",
                    "replacedByACombinationOfCompatibleInstructions":"replacedByACombinationOfCompatibleInstructions",
                    "newCompositeReplacement":"newCompositeReplacement",
                    "saveAndExit":"saveAndExit",
                    "modifyCombineReplace":"modifyCombineReplace",
                    "confirmCombinationReplacement":"confirmCombinationReplacement",
                    "replaceAssemblyCompatibilityInstructions":"replaceAssemblyCompatibilityInstructions",
                    "delete":"delete",
                    "leadingIn":"leadingIn",
                    "leadingOut":"leadingOut",
                    "leadingReplace":"leadingReplace",
                    "onlyUploadExcel":"onlyUploadExcel",
                    "clickUpload":"clickUpload",
                    "isLoading":"isLoading"
                }
            },
            nowLangue:{},
            activeName: '1',
            loading1:false,
            loading2:false,
            legalPersonDropDown:[],   //法人名称下拉列表中的值
            // ---------------------------------普通替换--------------------------------------//
            formInline:{
                productLineId:"",//产品线ID
                legalPersonId:"",
                legalPersonName:"",
                creatorName:"",//提交人
                status:"",//状态
                startCreateTime:"",//创建日期开始
                endCreateTime:"",//创建日期截止
                subMaterialCode:"",//替换备件编码
                subMaterialName:"",//替换备件名称
                materialCode:"",//被备件编码
                materialName:"",//被备件名称
            },
            tableData:[],    //普通替换查询 的数据
            productLineList:[],//产品线集合
            statusList:[],//状态集合
            reqSubTypeList:[],//需求替换关系集合

            fullscreenLoading:false,//导出时全屏遮盖层
            isPaging:false,
            pageIndex:1,
            pageSize:10,
            totalPage:2,
            totalNumber:18,

            createGReplacementVisible:false,   //新增普通替换弹窗
            createGReplacementForm:{
                productLineId:"",//产品线
                submiter:"",//提交人
                submitDate:"",//提交时间
                description:"",//说明
                urgentflag:false,//紧急程度
                type:1
            },
            createGReplaceData:[
                {
                    code1:"",//替换的CODE
                    name1:"",
                    groupCode1:"",//替换组的code,替换组的code2为id,
                    code2:"",//被替换的CODE 替换组传值为id
                    name2:"",
                    groupCode2:"",//被替换组的code,替换组的code2为id,
                    reqSubType:"",//替换类型
                    searchFlag:true//替换编码是否可选择
                }
            ],

            createIndex:"",//新增普通弹窗中备件需要赋值的下标
            createCurrent:"",//新增普通弹窗中备件需要赋值  是替换还是被替换
            parmCurrent:"",//使用备件弹窗的是新建还是修改

            updateGReplacementVisible:false,   //修改普通替换弹窗
            updateGReplacementForm:{
                formId:"",
                productLineId:"",//产品线
                productLineName:"",
                submiter:"",//提交人
                submitDate:"",//提交时间
                description:"",//说明
                urgentflag:false//紧急程度
            },
            updateGReplaceData:[],
            confirmGReplacementVisible:false,   //确认普通替换弹窗
            confirmGReplacementForm:{
                productLineName:"",//产品线
                submiter:"",//提交人
                submitDate:"",//提交时间
                description:"",//说明
                urgentflag:false,//紧急程度
                id:"",//要操作的记录ID
                materialEmcmemo:"",//被替换备件兼容性说明
                subMaterialEmcmemo:"",//替换备件兼容性说明
                subType:"",//确认替换关系
                active:"",//状态
                affirmDes:""//确认说明
            },
            confirmGReplaceData:[],

            importFileVisible:false,//导入弹窗
            action:"",
            fileList: [],

            dialogForm2Visible:false, // 选择备件弹窗
            dialogFormGroupVisible:false,//选择替换组弹窗

            // -----------------------------组合替换------------------------------------------------//
            formInline2:{
                createTimeBegin:"",
                createTimeEnd:"",
                status:"",
                materialCode:"",
                materialSubclass:""
            },

            tableData2:[{
                statusName:'111'
            }],     // 按备件查询 的数据
            isPaging2:true,
            pageIndex2:1,
            pageSize2:10,
            totalPage2:2,
            totalNumber2:18,
            
            createCReplacementVisible:false,   //新增组合替换弹窗
            createCReplacementForm:{
                enquiryStartDate:"",
                enquiryEndDate:""
            },
            addCReplace:[
                {
                    code:"111",
                    name:"ababa"
                }
            ],   // 组合替换
            updateCReplacementVisible:false,   //修改组合替换弹窗
            updateCReplacementForm:{
                enquiryStartDate:"",
                enquiryEndDate:""
            }, 
            confirmCReplaceVisible:false,   //确认组合替换弹窗
            confirmCReplaceForm:{
                status:"",
                enquiryStartDate:"",
                enquiryEndDate:""
            },
            confirmCReplaceData:[
                {
                    code:"code",
                    name:"name"
                }
            ],

            isUrgent:false,
            ids:[],      // 选中的每个计划行的id
            //权限
            powerFlag:false,

            //按钮禁用
            selectDisabled:false,
            saveDisabled:false,
            updateDisabled:false,
            confirmDisablde:false,
            leadoutDisabled:false,
        };
    },
    created:function(){
      var _this=this;
      _this.languageType=="zh"?_this.nowLangue=_this.language.zh:_this.nowLangue=_this.language.en;
    },
    computed:{
        languageType(){
            return this.$store.state.languageType;
        }
    },
    watch:{
        languageType(){
            var _this=this;
            _this.languageType=="zh"?_this.nowLangue=_this.language.zh:_this.nowLangue=_this.language.en;
        }
    },
    mounted:function(){
        var _this=this;
        _this.$store.commit('currentActive', 'EReplacementConfirmation');
        this.action=_this.metadata_service+'substituteAffirm/import';//导入请求路径
        // 普通替换   查询条件 法人名称 下拉列表的值
        _this.legalPersonDropDownValue();
        // 普通替换   查询
        _this.queryGReplacement();
        this.getCommonList();//下拉框
        this.queryOpera();//获取创建人员与创建时间
    },
    methods: {
        //---------------------===============================有效范围起
        //获取创建人员与创建时间
        queryOpera(){
            var _this=this;
            $.ajax({
                type:'GET',
                url:_this.metadata_service+'barCode/createInitParameter',
                cache:false,
                dataType:'JSON',
                contentType:"application/json;charset=utf-8",
                success:function(data){
                    if(data.success){
                        _this.createGReplacementForm.submiter=data.data.personName;
                        _this.createGReplacementForm.submitDate=data.data.operationTime;
                        _this.updateGReplacementForm.submiter=data.data.personName;
                        _this.updateGReplacementForm.submitDate=data.data.operationTime;
                        _this.confirmGReplacementForm.submiter=data.data.personName;
                        _this.confirmGReplacementForm.submitDate=data.data.operationTime;
                    }else{
                        _this.common.errorTip(data.errorMessage);
                    }
                }
            })
        },
        // 选择提交开始日期
        selectedCreateTimeBegin(val){
            var _this=this;
            _this.formInline.startCreateTime = val;
        },
        // 选择提交结束日期
        selectedCreateTimeEnd(val){
            var _this=this;
            _this.formInline.endCreateTime = val;
        },
        //下拉框公共接口
        getCommonList(){
            var _this=this;
            var tmp=["substituteForm.productLine","substituteFormItem.status","substituteFormItem.reqSubType"];
            $.ajax({
                type: 'POST',
                url: _this.metadata_service+"metadata/getPullDownList",
                cache: false,
                data:JSON.stringify(tmp),
                dataType:'JSON',
                contentType: "application/json;charset=utf-8",
                success: function (data) {
                    if (data.success) {
                        _this.productLineList=data.data['substituteForm.productLine'];//产品线集合
                        _this.statusList=data.data['substituteFormItem.status'];//状态集合
                        _this.reqSubTypeList=data.data['substituteFormItem.reqSubType'];//需求替换关系集合
                    }else{
                        _this.common.errorTip(data.errorMessage);
                    }
                }
            })
        },
        // 普通替换  组合替换 tab
        handleClick(tab, event) {
            var _this=this;
            if(tab.name==1){
                _this.queryGReplacement();
            }else if(tab.name==2){
                _this.queryCReplacement(_this.pageIndex2,_this.pageSize2);
            }
        },
        // 普通替换 查询条件 法人名称
        legalPersonDropDownValue(){  //法人名称下拉列表值
            var _this = this;
            $.ajax({
                type:'GET',
                url:_this.procurement_service+"legalPerson/ofCurrentUser",
                cache:false,
                success:function(data){
                    if(data.success){
                        _this.legalPersonDropDown = data.data;
                        if(_this.legalPersonDropDown.length == 1){
                            _this.formInline.legalPersonName = _this.legalPersonDropDown[0].legalPersonName;
                            _this.formInline.legalPersonId = _this.legalPersonDropDown[0].id;
                        }
                    }else{
                        _this.common.errorTip(data.errorMessage);
                    }
                }
            })
        },
        // 普通替换   查询
        queryGReplacement(){
            var _this=this;
             _this.loading1=true;
             _this.selectDisabled=true;
            var tmp={
                productLineId:_this.formInline.productLineId,//产品线ID
                legalPersonId:_this.formInline.legalPersonId,
                creatorName:_this.formInline.creatorName,//提交人
                status:_this.formInline.status,//状态
                startCreateTime:_this.formInline.startCreateTime,//创建日期开始
                endCreateTime:_this.formInline.endCreateTime,//创建日期截止
                subMaterialCode:_this.formInline.subMaterialCode,//替换备件编码
                subMaterialName:_this.formInline.subMaterialName,//替换备件名称
                materialCode:_this.formInline.materialCode,//被备件编码
                materialName:_this.formInline.materialName,//被备件名称
                pageIndex:this.pageIndex,
                pageSize :this.pageSize
            };
            $.ajax({
                type: 'POST',
                url: _this.metadata_service+"substituteAffirm/queryPage",
                cache: false,
                data:JSON.stringify(tmp),
                dataType:'JSON',
                contentType: "application/json;charset=utf-8",     //*****
                success: function (data) {
                    _this.loading1=false;
                    _this.selectDisabled=false;
                    if (data.success) {
                        _this.tableData=data.data.dataList;
                        _this.isPaging=true;      //显示分页
                        _this.totalNumber=data.data.totalNumber;    //总条数
                        _this.totalPage=data.totalPage;    //总页数
                    }else{
                        _this.common.errorTip(data.errorMessage);
                    }
                },
                error:function(){
                    _this.loading1=false;
                    _this.selectDisabled=false;
                }
            });
        },
        // 操作启用禁用
        handleStatus(index, row){
            var _this=this;
            if(row.isActive){
                row.isActive = false;
            }else{
                row.isActive = true;
            }
            var tmp={id: row.id,isActive: row.isActive};
             $.ajax({
                 type: 'POST',
                 url: _this.metadata_service+"substituteAffirm/updatesActive",
                 cache: false,
                 data:JSON.stringify(tmp),
                 dataType:'JSON',
                 contentType: "application/json;charset=utf-8",
                 success: function (data) {
                     if (data.success) {
                         // 当前状态的显示
                         if(row.isActive){
                             var successMessage1=_this.languageType=="zh"?'启用成功！':'Open Success';
                             _this.common.successTip(successMessage1);
                         }else{
                             var successMessage2=_this.languageType=="zh"?'禁用成功！':'Close Success';
                             _this.common.successTip(successMessage2);
                         }
                     }else
                         _this.common.errorTip(data.errorMessage);
                 }
             });
        },
        // 普通替换    分页
        handleSizeChange(val){
            var _this=this;
            _this.pageSize=val;
            _this.queryGReplacement();
        },
        // 普通替换    点击页码分页查询点击事件
        handleCurrentChange(val){
            // console.log(`当前页: ${val}`);
            var _this=this;
            _this.pageIndex=val;
            _this.queryGReplacement();
        },
        // 普通替换 替换申请按钮     
        gReplacementRequest(){
            var _this=this;
            this.createGReplacementForm={
                productLineId:"",//产品线
                submiter:"",//提交人
                submitDate:"",//提交时间
                description:"",//说明
                urgentflag:false,//紧急程度
                type:1
            };
            this.createGReplaceData=[
                {
                    code1:"",//替换的CODE
                    name1:"",
                    groupCode1:"",//替换组的code,替换组的code2为id,
                    code2:"",//被替换的CODE 替换组传值为id
                    name2:"",
                    groupCode2:"",//被替换组的code,替换组的code2为id,
                    reqSubType:"",//替换类型
                    searchFlag:true//替换编码是否可选择
                }
            ],
            this.queryOpera();//获取创建人员与创建时间
            _this.createGReplacementVisible=true;
        },
        //备件替换方式@change
        changeType(){
            this.createGReplaceData=[{
                code1:"",//替换的CODE
                name1:"",
                code2:"",//被替换的CODE
                name2:"",
                reqSubType:"",//替换类型
                searchFlag:true
            }]
        },
        // 新增普通替换   增行
        handleCreateAddGRow(){
            if(this.createGReplaceData[0].code1=="" || this.createGReplaceData[0].code1==null){
                var errorMessage=this.languageType=="zh"?'请先选择替换备件/替换备件组！':'Please Select Spare Or Group';
                this.common.errorTip(errorMessage);
                return;
            }
            if(this.createGReplacementForm.type==3 || this.createGReplacementForm.type==5){
                this.createGReplaceData.push({
                    code1:"",//替换的CODE
                    name1:"",
                    code2:"",//被替换的CODE
                    name2:"",
                    reqSubType:"",//替换类型
                    searchFlag:true
                })
            }else{
                this.createGReplaceData.push({
                    code1:this.createGReplaceData[0].code1,//替换的CODE
                    name1:this.createGReplaceData[0].name1,
                    code2:"",//被替换的CODE
                    name2:"",
                    reqSubType:"",//替换类型
                    searchFlag:false
                })
            }

        },
        // 新增普通替换确认   parm为 1保存 2保存并提交
        handleCreateAddGSave(parm){
            var _this=this;
            var parmList=[];
            var type1,type2;
            //一对一、一对多、多对多
            if(this.createGReplacementForm.type==1 || this.createGReplacementForm.type==2 || this.createGReplacementForm.type==3){
                type1=1;type2=1;
            }else if(this.createGReplacementForm.type==4){
                //备件与替换组
                type1=1;type2=2;
            }else if(this.createGReplacementForm.type==5){
                //替换组与替换组
                type1=2;type2=2;
            }
            var errMessage=_this.languageType=="zh"?'请将表格填写完整！':'Please Import';
            for(var i=0;i<this.createGReplaceData.length;i++){
                //判断是否为空
                if(!this.isNull(this.createGReplaceData[i].code1)){
                    this.common.errorTip(errMessage);
                    return false
                }
                if(!this.isNull(this.createGReplaceData[i].name1)){
                    this.common.errorTip(errMessage);
                    return false
                }
                if(!this.isNull(this.createGReplaceData[i].code2)){
                    this.common.errorTip(errMessage);
                    return false
                }
                if(!this.isNull(this.createGReplaceData[i].name2)){
                    this.common.errorTip(errMessage);
                    return false
                }
                if(!this.isNull(this.createGReplaceData[i].reqSubType)){
                    this.common.errorTip(errMessage);
                    return false
                }
                //拼接参数进行传参
                parmList.push({
                    productLineId:this.createGReplacementForm.productLineId,//产品线ID
                    urgentflag:this.createGReplacementForm.urgentflag,//是否紧急
                    type1:type1,//替换类型 1 备件  2 替换组
                    code1:this.createGReplaceData[i].code1,//替换的CODE
                    name1:this.createGReplaceData[i].name1,
                    type2:type2,//被替换类型 1 备件  2 替换组
                    code2:this.createGReplaceData[i].code2,//替换的CODE
                    name2:this.createGReplaceData[i].name2,
                    status:parm,//状态（根据点击的是保存按钮还是保存并提交按钮决定，分别传1,2）
                    reqSubType:this.createGReplaceData[i].reqSubType,//需求替换类型
                    description:this.createGReplacementForm.description,//说明
                })
            }
            var tmp={
                items:parmList
            }
            _this.$refs["createGReplacementForm"].validate((valid) => {
                if (valid) {
                    _this.saveDisabled=true;
                    $.ajax({
                        type:'POST',
                        url:_this.metadata_service+'substituteAffirm/add',
                        cache:false,
                        data:JSON.stringify(tmp),
                        dataType:'JSON',
                        contentType:"application/json;charset=utf-8",
                        success:function(data){
                            _this.saveDisabled=false;
                            if(data.success){
                                var successMessage=_this.languageType=="zh"?'保存成功！':'Save Success';
                                _this.common.successTip(successMessage);
                                _this.createGReplacementVisible=false;
                                _this.queryGReplacement();
                            }else if(data.errorCode=="substituteForm.add.exist.substitute.relation"){
                                var errorRelation="";
                                for(var i=0;i<data.hint.length;i++){
                                    errorRelation+=data.hint[i].materialCode+" -> " + data.hint[i].subMaterialCode +" "+data.hint[i].reqSubTypeName +'\n';
                                }
                                _this.common.errorTip(data.errorMessage+'\n'+errorRelation);
                            }else if(data.errorCode=="substituteForm.add.exist.same.item"){
                                var errorItem="";
                                for(var i=0;i<data.errorArgs.length;i++){
                                    errorItem+=data.errorArgs[i]+",";
                                }
                                _this.common.errorTip(errorItem+ " " + data.errorMessage);
                            }else if(data.errorCode=="substituteForm.add.exist.self2self"){
                                var errorSelf="";
                                for(var i=0;i<data.hint.length;i++){
                                    errorSelf+=data.hint[i].materialCode+",";
                                }
                                _this.common.errorTip(errorSelf+ " " + data.errorMessage);
                            }else{
                                _this.common.errorTip(data.errorMessage);
                            }
                        },
                        error:function(){
                            _this.saveDisabled=false;
                        }
                    })
                } else {
                    var err=_this.languageType=="zh"?'存在未填写的必填项！':'Have Empty';
                    _this.common.errorTip(err);
                    return false;
                }
            });

        },
        //判断是否为空
        isNull(str){
            if(str=="" || str==null){
                return false;
            }
            return true
        },
        //需求替换关系@change
        changeReq(index){
            if(this.isNull(this.createGReplaceData[index].code1)){
                this.createGReplaceData[index].code2="";
                this.createGReplaceData[index].name2="";
            }else{
                this.createGReplaceData[index].reqSubType="";
                var err=this.languageType=="zh"?'请先选择替换备件/替换备件组！':'Please Select';
                this.common.errorTip(err);
            }
        },
        // 新增\修改 选择备件弹窗
        querySpare(index,code,parmData){
            this.createIndex=index;
            this.createCurrent=code;
            this.parmCurrent=parmData;
            if(parmData=="updateGReplaceData"){
                this.dialogForm2Visible = true;
            }else{
                if(code==1){
                    this.dialogForm2Visible = true;
                }else if(this.isNull(this.createGReplaceData[index].reqSubType)){
                    this.dialogForm2Visible = true;
                }else{
                    var err=this.languageType=="zh"?'请先选择需求替换关系！':'Please Select';
                    this.common.errorTip(err);
                }
            }
        },
        // 选择备件弹窗的确定按钮
        confirmSpare(selectedSpare){
            this.dialogForm2Visible = false;
            if(this.parmCurrent=="createGReplaceData"){
                var reaptCode=[];//互替暂存code
                var reaptOnly=[];//单替暂存
                var reaptDis=[];//反替暂存
                for(var i=0;i<this.createGReplaceData.length-1;i++){
                    if(this.createGReplaceData[i].reqSubType==1){//互替
                        reaptCode.push({code1:this.createGReplaceData[i].code1,code2:this.createGReplaceData[i].code2});
                    }
                    if(this.createGReplaceData[i].reqSubType==2){//单替
                        reaptOnly.push({code1:this.createGReplaceData[i].code1,code2:this.createGReplaceData[i].code2});
                    }
                    if(this.createGReplaceData[i].reqSubType==3){//反替
                        reaptDis.push({code1:this.createGReplaceData[i].code1,code2:this.createGReplaceData[i].code2});
                    }
                }
                //替换申请   新建
                if(this.createCurrent==1){//替换备件选择备件时
                    //清空行项目
                    this.createGReplaceData[this.createIndex].reqSubType="";
                    this.createGReplaceData[this.createIndex].code2 = "";
                    this.createGReplaceData[this.createIndex].name2 = "";

                    //多对多、替换组对替换组时时
                     if(this.createGReplacementForm.type==3 || this.createGReplacementForm.type==5){
                         this.createGReplaceData[this.createIndex].code1 = selectedSpare.selectedSpareCode;
                         this.createGReplaceData[this.createIndex].name1 = selectedSpare.selectedSpareName;
                     }else{
                         //其他  当第一项改变时，下面的所有行都跟着变化
                         for(var i=0;i<this.createGReplaceData.length;i++){
                             this.createGReplaceData[i].code1=selectedSpare.selectedSpareCode;
                             this.createGReplaceData[i].name1=selectedSpare.selectedSpareName;
                         }
                     }
                }else if(this.createCurrent==2){//被替换备件选择备件时
                    if(this.createGReplaceData[this.createIndex].code1==selectedSpare.selectedSpareCode){
                        var errReplace=this.languageType=="zh"?'备件不能替换自身！':'Have Select';
                        this.common.errorTip(errReplace);
                    }else {
                        //互替
                        if(this.judgeCode(selectedSpare.selectedSpareCode,reaptCode)){
                            var errHadElse = this.languageType == "zh" ? '备件之间已存在互替关系！' : 'Have Select';
                            this.common.errorTip(errHadElse);
                        }else if(this.aloneSwitch(selectedSpare.selectedSpareCode,reaptOnly)){//单替

                        }else if(this.disSwitch(selectedSpare.selectedSpareCode,reaptDis)){//反替

                        }else{
                            this.createGReplaceData[this.createIndex].code2 = selectedSpare.selectedSpareCode;
                            this.createGReplaceData[this.createIndex].name2 = selectedSpare.selectedSpareName;
                        }
                    }
                }
            }else{
                //修改
                if(this.createCurrent==1){//替换备件选择备件时
                    this.updateGReplaceData[0].subMaterialCode=selectedSpare.selectedSpareCode;
                    this.updateGReplaceData[0].subMaterialName=selectedSpare.selectedSpareName;
                }else if(this.createCurrent==2){//被替换备件选择备件时
                    if(this.updateGReplaceData[0].subMaterialCode==selectedSpare.selectedSpareCode){
                        var errReplace=this.languageType=="zh"?'备件不能替换自身！':'Have Select';
                        this.common.errorTip(errReplace);
                    }else{
                        this.updateGReplaceData[0].materialCode=selectedSpare.selectedSpareCode;
                        this.updateGReplaceData[0].materialName=selectedSpare.selectedSpareName;
                    }
                }
            }
        },
        //判断code1与code2  互替场景下得判断
        judgeCode(code2,reaptCode){
            for(var i=0;i<reaptCode.length;i++){
                if((reaptCode[i].code1==this.createGReplaceData[this.createIndex].code1 && reaptCode[i].code2==code2)||(reaptCode[i].code2==this.createGReplaceData[this.createIndex].code1 && reaptCode[i].code1==code2)){
                    return true
                }
            }
            return false
        },
        // 单替场景下得判断
        aloneSwitch(code2,reaptOnly){
            for(var i=0;i<reaptOnly.length;i++){
                if(reaptOnly[i].code1==this.createGReplaceData[this.createIndex].code1 && reaptOnly[i].code2==code2 && this.createGReplaceData[this.createIndex].reqSubType==2){
                    var errHad1=this.languageType=="zh"?'备件已存在单替关系！':'Have Select';
                    this.common.errorTip(errHad1);
                    return true
                }
                if(reaptOnly[i].code1==code2 && reaptOnly[i].code2==this.createGReplaceData[this.createIndex].code1 && this.createGReplaceData[this.createIndex].reqSubType==3){
                    var errDis=this.languageType=="zh"?'被替换备件与替换备件存在单替关系！':'Have Select';
                    this.common.errorTip(errDis);
                    return true
                }
            }
            return false
        },
        // 反替场景下得判断
        disSwitch(code2,reaptDis){
            for(var i=0;i<reaptDis.length;i++){
                if(reaptDis[i].code1==this.createGReplaceData[this.createIndex].code1 && reaptDis[i].code2==code2 && this.createGReplaceData[this.createIndex].reqSubType==3){
                    var errHad1=this.languageType=="zh"?'备件已存在反替关系！':'Have Select';
                    this.common.errorTip(errHad1);
                    return true
                }
                if(reaptDis[i].code1==code2 && reaptDis[i].code2==this.createGReplaceData[this.createIndex].code1 && this.createGReplaceData[this.createIndex].reqSubType==2){
                    var errDis=this.languageType=="zh"?'被替换备件与替换备件存在反替关系！':'Have Select';
                    this.common.errorTip(errDis);
                    return true
                }
            }
            return false
        },
        //关闭弹窗
        closeDialog(dialogVisible){
            this.dialogForm2Visible = dialogVisible;
        },
        // 新增 选择替换组弹窗
        querySpareGroup(index,code){
            this.createIndex=index;
            this.createCurrent=code;
            if(code==1){
                this.dialogFormGroupVisible = true;
            }else if(this.isNull(this.createGReplaceData[index].reqSubType)){
                this.dialogFormGroupVisible = true;
            }else{
                var err=this.languageType=="zh"?'请先选择需求替换关系！':'Please Select';
                this.common.errorTip(err);
            }
        },
        //选择替换组确定
        confirmSpareGroup(selectedSpareGroup){
            this.dialogFormGroupVisible = false;
            this.dialogForm2Visible = false;
            var reaptCode=[];//互替暂存code
            var reaptOnly=[];//单替暂存
            var reaptDis=[];//反替暂存
            for(var i=0;i<this.createGReplaceData.length-1;i++){
                if(this.createGReplaceData[i].reqSubType==1){//互替
                    reaptCode.push({code1:this.createGReplaceData[i].code1,code2:this.createGReplaceData[i].code2});
                }
                if(this.createGReplaceData[i].reqSubType==2){//单替
                    reaptOnly.push({code1:this.createGReplaceData[i].code1,code2:this.createGReplaceData[i].code2});
                }
                if(this.createGReplaceData[i].reqSubType==3){//反替
                    reaptDis.push({code1:this.createGReplaceData[i].code1,code2:this.createGReplaceData[i].code2});
                }
            }
            if(this.createCurrent==1){//替换备件选择备件时
                //清空行项目
                this.createGReplaceData[this.createIndex].reqSubType="";
                this.createGReplaceData[this.createIndex].code2 = "";
                this.createGReplaceData[this.createIndex].name2 = "";
                this.createGReplaceData[this.createIndex].groupCode2="";

                //多对多、替换组对替换组时时
                if(this.createGReplacementForm.type==3 || this.createGReplacementForm.type==5){
                    this.createGReplaceData[this.createIndex].code1=selectedSpareGroup.selectedSpareId;
                    this.createGReplaceData[this.createIndex].name1=selectedSpareGroup.selectedSpareName;
                    this.createGReplaceData[this.createIndex].groupCode1=selectedSpareGroup.selectedSpareCode;
                }else{
                    //其他  当第一项改变时，下面的所有行都跟着变化
                    for(var i=0;i<this.createGReplaceData.length;i++){
                        this.createGReplaceData[i].code1=selectedSpareGroup.selectedSpareId;
                        this.createGReplaceData[i].name1=selectedSpareGroup.selectedSpareName;
                        this.createGReplaceData[i].groupCode1=selectedSpareGroup.selectedSpareCode;
                    }
                }
            }else if(this.createCurrent==2){//被替换备件选择备件时
                if(this.createGReplaceData[this.createIndex].code1==selectedSpareGroup.selectedSpareId){
                    var errReplace=this.languageType=="zh"?'替换备件组不能替换自身！':'Have Select';
                    this.common.errorTip(errReplace);
                }else {
                    //互替
                    if(this.judgeCode(selectedSpareGroup.selectedSpareId,reaptCode)){
                        var errHadElse = this.languageType == "zh" ? '备件之间已存在互替关系！' : 'Have Select';
                        this.common.errorTip(errHadElse);
                    }else if(this.aloneSwitch(selectedSpareGroup.selectedSpareId,reaptOnly)){//单替

                    }else if(this.disSwitch(selectedSpareGroup.selectedSpareId,reaptDis)){//反替

                    }else{
                        this.createGReplaceData[this.createIndex].code2=selectedSpareGroup.selectedSpareId;
                        this.createGReplaceData[this.createIndex].name2=selectedSpareGroup.selectedSpareName;
                        this.createGReplaceData[this.createIndex].groupCode2=selectedSpareGroup.selectedSpareCode;
                    }
                }
            }
        },
        closeDialogGroup(dialogVisible){
            this.dialogFormGroupVisible = dialogVisible;
        },
        //删除
        deleteSpare(index){
            this.createGReplaceData.splice(index,1);
        },
        // 修改普通替换
        handleGReplacementUpdate(index,row){
            var _this = this;
            _this.updateGReplacementVisible=true;
            this.updateGReplacementForm.formId=row.formId;
            this.updateGReplacementForm.productLineId=""+row.productLineId;
            this.updateGReplacementForm.description=row.description;
            this.updateGReplacementForm.urgentflag=row.urgentflag;
            this.updateGReplaceData=[{
                id:row.id,
                subMaterialCode:row.subMaterialCode,
                subMaterialName:row.subMaterialName,
                materialCode:row.materialCode,
                materialName:row.materialName,
                reqSubType:""+row.reqSubType
            }]
        },
        // 修改普通替换   1保存 2保存并提交
        handleUpdateAddGSave(parm){
            var _this=this;
            var errMessage=_this.languageType=="zh"?'请将表格填写完整！':'Please Import';
            if(!this.isNull(this.updateGReplaceData[0].subMaterialCode)){
                this.common.errorTip(errMessage);
                return false
            }
            if(!this.isNull(this.updateGReplaceData[0].subMaterialName)){
                this.common.errorTip(errMessage);
                return false
            }
            if(!this.isNull(this.updateGReplaceData[0].materialCode)){
                this.common.errorTip(errMessage);
                return false
            }
            if(!this.isNull(this.updateGReplaceData[0].materialName)){
                this.common.errorTip(errMessage);
                return false
            }
            if(!this.isNull(this.updateGReplaceData[0].reqSubType)){
                this.common.errorTip(errMessage);
                return false
            }
            var tmp={
                id:this.updateGReplaceData[0].id,
                formId:this.updateGReplacementForm.formId,
                subMaterialCode:this.updateGReplaceData[0].subMaterialCode,
                subMaterialName:this.updateGReplaceData[0].subMaterialName,
                materialCode:this.updateGReplaceData[0].materialCode,
                materialName:this.updateGReplaceData[0].materialName,
                reqSubType:this.updateGReplaceData[0].reqSubType,
                productLineId:this.updateGReplacementForm.productLineId,
                description:this.updateGReplacementForm.description,
                urgentflag:this.updateGReplacementForm.urgentflag,
                status:parm,
            }
            _this.$refs["updateGReplacementForm"].validate((valid) => {
                if (valid) {
                    _this.updateDisabled=true;
                    $.ajax({
                        type:'POST',
                        url:_this.metadata_service+'substituteAffirm/update',
                        cache:false,
                        data:JSON.stringify(tmp),
                        dataType:'JSON',
                        contentType:"application/json;charset=utf-8",
                        success:function(data){
                            _this.updateDisabled=false;
                            if(data.success){
                                var successMessage=_this.languageType=="zh"?'保存成功！':'Save Success';
                                _this.common.successTip(successMessage);
                                _this.updateGReplacementVisible=false;
                                _this.queryGReplacement();
                            }else if(data.errorCode=="substituteForm.add.exist.substitute.relation"){
                                var errorRelation="";
                                for(var i=0;i<data.hint.length;i++){
                                    errorRelation+=data.hint[i].materialCode+" -> " + data.hint[i].subMaterialCode +" "+data.hint[i].reqSubTypeName +'\n';
                                }
                                _this.common.errorTip(data.errorMessage+'\n'+errorRelation);
                            }else if(data.errorCode=="substituteForm.add.exist.same.item"){
                                var errorItem="";
                                for(var i=0;i<data.errorArgs.length;i++){
                                    errorItem+=data.errorArgs[i]+",";
                                }
                                _this.common.errorTip(errorItem+ " " + data.errorMessage);
                            }else if(data.errorCode=="substituteForm.add.exist.self2self"){
                                var errorSelf="";
                                for(var i=0;i<data.hint.length;i++){
                                    errorSelf+=data.hint[i].materialCode+",";
                                }
                                _this.common.errorTip(errorSelf+ " " + data.errorMessage);
                            }else{
                                _this.common.errorTip(data.errorMessage);
                            }
                        },
                        error:function(){
                            _this.updateDisabled=false;
                        }
                    })
                } else {
                    var err=_this.languageType=="zh"?'存在未填写的必填项！':'Have Empty';
                    _this.common.errorTip(err);
                    return false;
                }
            });
        },
        // 确认普通替换
        handleGConfirmation(index,row){
            this.confirmGReplacementVisible=true;

            this.confirmGReplacementForm.productLineName=row.productLineName;
            this.confirmGReplacementForm.description=row.description;
            this.confirmGReplacementForm.urgentflag=row.urgentflag;
            this.confirmGReplacementForm.id=row.id;
            this.confirmGReplacementForm.materialEmcmemo=row.materialEmcmemo;
            this.confirmGReplacementForm.subMaterialEmcmemo=row.subMaterialEmcmemo;
            this.confirmGReplacementForm.subType=row.subType;
            this.confirmGReplacementForm.affirmDes="";
            this.confirmGReplacementForm.active=row.isActive;
            this.confirmGReplaceData=[{
                subMaterialCode:row.subMaterialCode,
                subMaterialName:row.subMaterialName,
                materialCode:row.materialCode,
                materialName:row.materialName,
                reqSubTypeName:row.reqSubTypeName,
                subType:""+row.reqSubType
            }]
        },
        // 确认普通替换  确认通过传3 、确认不通过传4
        handleConfirm(parm){
            var _this = this;
            _this.confirmDisablde=true;
            var tmp={
                id:this.confirmGReplacementForm.id,//要操作的记录ID
                materialEmcmemo:this.confirmGReplacementForm.materialEmcmemo,//被替换备件兼容性说明
                subMaterialEmcmemo:this.confirmGReplacementForm.subMaterialEmcmemo,//替换备件兼容性说明
                subType:this.confirmGReplaceData[0].subType,//确认替换关系
                affirmDes:this.confirmGReplacementForm.affirmDes,//确认说明
                isActive:this.confirmGReplacementForm.active,//确认说明
                status:parm//确认结果   （确认通过传3 、确认不通过传4）
            }
            $.ajax({
                type:'POST',
                url:_this.metadata_service+'substituteAffirm/affirm',
                cache:false,
                data:JSON.stringify(tmp),
                dataType:'JSON',
                contentType:"application/json;charset=utf-8",
                success:function(data){
                    if(data.success){
                        _this.confirmDisablde=false;
                        var successMessage=_this.languageType=="zh"?'确认成功！':'Confirm Success';
                        _this.common.successTip(successMessage);
                        _this.confirmGReplacementVisible=false;
                        _this.queryGReplacement();
                    }else{
                        _this.confirmDisablde=false;
                        _this.common.errorTip(data.errorMessage);
                    }
                },
                error:function(){
                    _this.confirmDisablde=false;
                }
            })
        },
        //导出
        leadingOut(){
            var _this = this;
            this.fullscreenLoading=true;
            _this.leadoutDisabled=true;
            var tmp={
                productLineId:_this.formInline.productLineId,//产品线ID
                legalPersonId:_this.formInline.legalPersonId,
                creatorName:_this.formInline.creatorName,//提交人
                status:_this.formInline.status,//状态
                startCreateTime:_this.formInline.startCreateTime,//创建日期开始
                endCreateTime:_this.formInline.endCreateTime,//创建日期截止
                subMaterialCode:_this.formInline.subMaterialCode,//替换备件编码
                subMaterialName:_this.formInline.subMaterialName,//替换备件名称
                materialCode:_this.formInline.materialCode,//被备件编码
                materialName:_this.formInline.materialName,//被备件名称
            }
            var str="?";
            for(var i in tmp ){
                str+=i+"="+tmp[i]+"&";
            }
            $.ajax({
                type:'GET',
                url:_this.metadata_service+'substituteAffirm/export'+str.substr(0,str.length-1),
                cache:false,
                contentType:"application/json;charset=utf-8",
                success:function(data){
                    _this.fullscreenLoading=false;
                    _this.leadoutDisabled=false;
                    if(data.errorMessage){
                        _this.common.errorTip(data.errorMessage);
                    }else{
                        window.location.href = _this.metadata_service+'substituteAffirm/export'+str.substr(0,str.length-1);
                        var successMessage=_this.languageType=="zh"?'导出成功！':'Confirm Success';
                        _this.common.successTip(successMessage);
                    }
                },
                error:function(){
                    _this.fullscreenLoading=false;
                    _this.leadoutDisabled=false;
                    var errorMessage=_this.languageType=="zh"?'导出失败':'Export failure';
                    _this.common.errorTip(errorMessage);
                }
            })
        },
        //导入
        leadingIn(){
            this.importFileVisible=true;
            this.fileList=[];
        },
        //上传文件之前的钩子
        beforeAvatarUpload(file) {
            const isExcel2007 = file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
            const isExcel2003 = file.type === 'application/vnd.ms-excel';
            if (!isExcel2007 && !isExcel2003) {
                this.$message.error('只能上传excel文件!');
            }
            return isExcel2007 || isExcel2003 ;
        },
        // 文件上传成功时的钩子
        handleAvatarSuccess(data, file) {
            var _this=this;
            if(data.success){
                var successMessage=_this.languageType=="zh"?'上传成功！':'Upload successfully!';
                _this.common.successTip(successMessage);
                _this.importFileVisible = false;
                //上传成功刷新页面
                _this.queryGReplacement();
            }else if(data.errorCode=="substituteForm.add.exist.substitute.relation"){
                var errorRelation="";
                for(var i=0;i<data.hint.length;i++){
                    errorRelation+=data.hint[i].materialCode+" -> " + data.hint[i].subMaterialCode +" "+data.hint[i].reqSubTypeName +'\n';
                }
                _this.common.errorTip(data.errorMessage+'\n'+errorRelation);
                _this.fileList=[];
            }else if(data.errorCode=="substituteForm.add.exist.same.item"){
                var errorItem="";
                for(var i=0;i<data.errorArgs.length;i++){
                    errorItem+=data.errorArgs[i]+",";
                }
                _this.common.errorTip(errorItem+ " " + data.errorMessage);
                _this.fileList=[];
            }else if(data.errorCode=="substituteForm.add.exist.self2self"){
                var errorSelf="";
                for(var i=0;i<data.hint.length;i++){
                    errorSelf+=data.hint[i].materialCode+",";
                }
                _this.common.errorTip(errorSelf+ " " + data.errorMessage);
                _this.fileList=[];
            }else{
                _this.common.errorTip(data.errorMessage);
                _this.fileList=[];
            }
        },
        handleRemove(file, fileList) {
            console.log(file, fileList);
        },
        handlePreview(file) {
            console.log(file);
        },
        //------------------------------------------------有效接口结束分界线------------------------------------
        // 提交时间
        selectedEnquiryStartDate(val){
            var _this=this;
            _this.createGReplacementForm.enquiryStartDate = val;
            if(_this.createGReplacementForm.enquiryEndDate && val > _this.createGReplacementForm.enquiryEndDate){
                _this.common.errorTip("提交时间不能大于询价结束日期");
                _this.createGReplacementForm.enquiryStartDate = "";
            };
        },
        // 组合替换   查询
        queryCReplacement(pageIndex,pageSize){
            var _this=this;
            _this.loading2=true;
            _this.loading1=false;
            var tmp={createTimeBegin:_this.formInline2.createTimeBegin,createTimeEnd:_this.formInline2.createTimeEnd,status:_this.formInline2.status,materialCode:_this.formInline2.materialCode,materialSubclass:_this.formInline2.materialSubclass,
            pageIndex:pageIndex,pageSize :pageSize};
            $.ajax({
                type: 'POST',
                url: _this.procurement_service+"planAggregation/queryMaterial",
                cache: false,
                data:JSON.stringify(tmp),
                dataType:'JSON',
                contentType: "application/json;charset=utf-8",     //*****
                success: function (data) {
                    if (data.success) {
                        _this.loading2=false;
                        _this.tableData2=data.data.content;
                        _this.isPaging=true;      //显示分页
                        _this.totalNumber2=data.data.totalElements;    //总条数
                        _this.totalPage2=data.totalPages;    //总页数
                    }else
                        // console.log(data.errorMessage);                             
                        _this.common.errorTip(data.errorMessage);
                }
            })
        },
        // 组合替换    分页
        handleSizeChange2(val){
            var _this=this;
            _this.pageSize2=val;
            _this.queryCReplacement(_this.pageIndex2, _this.pageSize2);
        },
        // 组合替换    点击页码分页查询点击事件
        handleCurrentChange2(val){
            var _this=this;
            _this.pageIndex2=val;
            _this.queryCReplacement(_this.pageIndex2, _this.pageSize2);
        },
        //组合替换  替换申请按钮  
        cReplacementRequest(){
            var _this=this;
            _this.createCReplacementVisible=true;
        },
        // 新增组合替换弹窗中的增行按钮
        handleCreateAddCRow(){
            var _this = this;

        },
        // 新增组合替换弹窗中的保存按钮
        handleCreateAddCSave(){
            var _this = this;
            
        },
        // 新增组合替换弹窗中的保存并退出按钮
        handleCreateAddCSAE(){
            var _this = this;
            _this.createCReplacementVisible=false;
            
        },
        // 修改普通替换
        handleCReplacementUpdate(){
            var _this = this;
            _this.updateCReplacementVisible=true;
            
        },
        // 修改组合替换弹窗中的增行按钮
        handleUpdateAddCRow(){
            var _this = this;

        },
        // 修改组合替换弹窗中的保存按钮
        handleUpdateAddCSave(){
            var _this = this;
            
        },
        // 修改组合替换弹窗中的保存并退出按钮
        handleUpdateAddCSAE(){
            var _this = this;
            _this.createCReplacementVisible=false;
            
        },
        // 确认普通替换
        handleCConfirmation(){
            var _this = this;
            _this.confirmCReplaceVisible=true;
            
        },
        // 确认不成立
        failToConfirm(){
            var _this = this;
            _this.confirmCReplaceVisible=false;

        },
        // 确认成立
        successToConfirm(){
            var _this = this;
            _this.confirmCReplaceVisible=false;

        }
    }
  };
</script>